﻿Ext.apply(llano, {
    CheckDelete: function (d) {
        if (d.length < 5) { this.showNotify(this.PROMPTED, this.ERR_NOSELECT); return; }
        else { this.showDeleteAllConfirm(Column, d); }
    },
    CreateFile: function (d) {
        Column.CreateFile(d);
    },
    CellCommand: function (grid, record, command, rowIndex) {
        switch (command) {
            case "Edit": Article.EditInfo(record.data.id); break;
            case "Delete": this.showDeleteConfirm(Article, record.data.id); break;
            case "Scale": Article.ChangeState(record.data.id, command); break;
            case "Hot": Article.ChangeState(record.data.id, command); break;
        }
    }
});